package dataserver.service;

import dataserver.pojo.SceneDevice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface SceneDeviceService {

    /**
     * 存储信息
     *
     * @param sourceData
     */
    int save(SceneDevice sourceData) throws Exception;

    /**
     * 删除信息根据id
     *
     * @param id
     */
    void deleteById(String id) throws Exception;

    /**
     * 分页查询数据
     *
     * @param specification
     * @param pageable
     * @return Page<SceneDevice>
     */
    Page<SceneDevice> findPageData(Specification<SceneDevice> specification,Pageable pageable) throws Exception;


    /**
     * 查询信息根据站场id
     *
     * @param specification
     * @return List<SceneDevice>
     */
    List<SceneDevice> findData(Specification<SceneDevice> specification) throws Exception;

}